package main

import "fmt"

type Person struct {
	name string
	age int
	sex byte
}

type Student struct {
	Person
	id int
	addr string
}

func main() {
	s1 := Student{Person{"mike", 'm', 18}, 1, "sz"}
	s2 := Student{Person:Person{"lily", 'f', 19}, id:2}
	s3 := Student{Person:Person{name:"tome"}, id:3}
	fmt.Printf("s1=%+v\n", s1)
	fmt.Printf("s2=%+v\n", s2)
	fmt.Printf("s3=%+v\n", s3)
}
